#dyh-2021chengdu Dockerfile

FROM registry.cn-chengdu.aliyuncs.com/dyh-2021chengdu/dyh_base:swoole-v1
LABEL maintainer="Jhou Shuai <jhou.shuai@qq.com>" version="1.0" license="MIT" app.name="DyhSwoole"


ARG TZ
ARG APP_ENV

ENV APP_ENV=${APP_ENV:-"prod"}

#使用国内的阿里云源防止超时
RUN sed -i "s/mirrors.aliyun.com/mirrors.cloud.aliyuncs.com/g" /etc/apk/repositories && sed -i "s/https/http/g" /etc/apk/repositories


WORKDIR /var/www

#RUN chown -R www:www /var/www

EXPOSE 9501-9504

#大运会官网
#ENTRYPOINT ["php","/var/www/DyhGW/dyh2c-api/api/web/swoole.php","start"]
#世云会官网
ENTRYPOINT ["php","/var/www/Syh/dyh2c-api/api/web/swoole.php","start"]

#CMD ["sh", "-c", "php /var/www/DyhGW/dyh2c-api/api/web/swoole.php start"]

#CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
